package com.jackeys.piaems.dao;

import com.jackeys.piaems.dto.ImageInfDto;
import com.jackeys.piaems.entity.Image;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: ImageDao
 * @Description: 图片持久层接口
 * @Author: Jackeys
 * @Date: 2021-06-28 16:15
 * @Version: 1.0
 */
public interface ImageDao {
    //查询图片
    List<Image> queryImageBySize(Integer start, Integer size);
    //查询图片数量
    Integer selectCntImage();
    //插入图片
    Boolean insertImage( String image, String date);
    //查询条件图片
    List<Image> queryImageBySizeAndCondition(Integer start,   Integer size,String condition);
    //查询条件图片数量
    Integer selectCntImageByCondition(String condition);
    //查询数量和日期
    List<ImageInfDto> selectCntAndDate();
}
